package cn.edu.scau.cmi.xuchuangxiong.mybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.scau.cmi.xuchuangxiong.mybatis.mapper.TeacherMapper;
import cn.edu.scau.cmi.xuchuangxiong.mybatis.pojo.Teacher;
import cn.edu.scau.cmi.xuchuangxiong.mybatis.service.TeacherService;

@Service
public class TeacherServiceImpl implements TeacherService{

	@Autowired
	TeacherMapper teacherMapper;
	
	@Override
	public boolean insertTeacher(Teacher teacher) {
		return teacherMapper.insertTeacher(teacher);
	}

	@Override
	public boolean deleteTeacherByID(String teaID) {
		return teacherMapper.deleteTeacherByID(teaID);
	}

	@Override
	public boolean updateTeacherNameByID(Teacher teacher) {
		return teacherMapper.updateTeacherNameByID(teacher);
	}
	

}
